﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace DNA.Mvc.Installation
{
    [Serializable, XmlRoot("config", Namespace = "http://www.dotnetage.com/XML/Schema/installer/config/sql")]
    public class SqlScriptConfiguration
    {
        /// <summary>
        /// Gets/Sets the connection string name for the SqlScriptInstaller to using.
        /// </summary>
        [XmlAttribute("connectionStringName")]
        public string ConnectionStringName { get; set; }

        /// <summary>
        /// Gets/Sets the sql script file name.
        /// </summary>
        [XmlAttribute("src")]
        public string ScriptFileName { get; set; }


        [XmlElement("replace")]
        public List<ReplacementConfigurationNode> Replacements;

    }
}
